for a in xrange(1, 10):
    for b in xrange(1, 10):
        if a == b: continue
        for c in xrange(1, 10):
            if 9*a*c + b*c == 10*a*b:
                print "%d/%d == %d/%d" % (10*a + b, 10*b + c, a, c)